package com.mz.mattress.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mz.mattress.api.entity.Card;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CardMapper extends BaseMapper<Card> {

    @Select("select * from mz_card where merchant_id=#{merchantId} and status=1 and deleted=0")
    List<Card> selectByMerchantId(@Param("merchantId") Integer merchantId);

}
